package br.com.batista.tarefas.jdbc;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class ConnectionFactory {
	public Connection getConnection() {
		try {
			DriverManager.registerDriver(new com.mysql.jdbc.Driver()); // Alterado do original
			return (Connection) DriverManager.getConnection("jdbc:mysql://192.168.1.5/test","root","adminbatista");
			
		} catch(SQLException e) {
			throw new RuntimeException(e);
		}
	}
}  